package com.vhall.component.entity.room;

import com.vhall.component.entity.room.enums.*;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * RoomBaseInfoResponseVO-
 * "liveType": "直播类型",
 * "accountVerify": "账户验证",
 * "riskLevel": "风险等级",
 * "investPeriod": "投资期限",
 * "investVariety": "投资品种",
 * "businessAuth": "业务权限",
 * "investorReq": "合格投资者要求",
 * "liveClassify": "直播业务分类",
 * "livePurpose": "直播目的"
 *
 * @author xing.wang
 * @date 2023/8/5
 */
@Data
public class RoomBaseInfoResponseVO implements Serializable {
    /**
     * 直播类型
     */
    private Map<String, String> liveType = new HashMap<>();
    /**
     * 账户验证
     */
    private Map<String, String> accountVerify = new HashMap<>();
    /**
     * 风险等级
     */
    private Map<String, String> riskLevel = new HashMap<>();
    /**
     * 投资期限
     */
    private Map<String, String> investPeriod = new HashMap<>();
    /**
     * 投资品种
     */
    private Map<String, String> investVariety = new HashMap<>();
    /**
     * 业务权限
     */
    private Map<String, String> businessAuth = new HashMap<>();
    /**
     * 合格投资者要求
     */
    private Map<String, String> investorReq = new HashMap<>();
    /**
     * 直播业务分类
     */
    private Map<String, String> liveClassify = new HashMap<>();
    /**
     * 直播目的
     */
    private Map<String, String> livePurpose = new HashMap<>();

    {
        for (LiveContentTypeEnum value : LiveContentTypeEnum.values()) {
            liveType.put(value.getValue().toString(),value.getName());
        }
        for (AccountVerifyEnum value : AccountVerifyEnum.values()) {
            accountVerify.put(value.getValue().toString(),value.getName());
        }
        for (RiskLevelEnum value : RiskLevelEnum.values()) {
            riskLevel.put(value.getValue().toString(),value.getName());
        }
        for (InvestPeriodEnum value : InvestPeriodEnum.values()) {
            investPeriod.put(value.getValue().toString(),value.getName());
        }
        for (InvestVarietyEnum value : InvestVarietyEnum.values()) {
            investVariety.put(value.getValue().toString(),value.getName());
        }
        for (BusinessAuthEnum value : BusinessAuthEnum.values()) {
            businessAuth.put(value.getValue().toString(),value.getName());
        }
        for (InvestorReqEnum value : InvestorReqEnum.values()) {
            investorReq.put(value.getValue().toString(),value.getName());
        }
        for (LiveClassifyEnum value : LiveClassifyEnum.values()) {
            liveClassify.put(value.getValue().toString(),value.getName());
        }
        for (LivePurposeEnum value : LivePurposeEnum.values()) {
            livePurpose.put(value.getValue().toString(),value.getName());
        }
    }
}
